package kr.jobseeker.movinavi;

import android.os.Parcel;
import android.os.Parcelable;

public class Steps implements Parcelable {
	String distance = "";			// 거리
	String duration = "";			// 걸리는시간
	String end_location_lat = "";	// 도착지 위도
	String end_location_lng = "";	// 도착지 경도
	String html_instructions = "";	// 안내사항
	String start_location_lat = "";	// 출발지 위도
	String start_location_lng = "";	// 출발지 경도
	String travel_mode = "";		// 여행 방법

	public Steps(String dis, String dur, 
			String end_loc_lat, String end_loc_lng, 
			String html_instruc, 
			String start_loc_lat, String start_loc_lng, 
			String travel_m){
		distance = dis;
		duration = dur;
		end_location_lat = end_loc_lat;
		end_location_lng = end_loc_lng;
		html_instructions = html_instruc;
		start_location_lat = start_loc_lat;
		start_location_lng = start_loc_lng;
		travel_mode = travel_m;
	}

	public Steps(Parcel in){
		super();
		readFromParcel(in);
	}
	
	public static final Parcelable.Creator<Steps> CREATOR = new 
			Creator<Steps>() {
        public Steps createFromParcel(Parcel in) {
        	return new Steps(in);
        }
        public Steps[] newArray(int size) {
            return new Steps[size];
        }
    };
	public void readFromParcel(Parcel in) {
		distance = in.readString();
		duration = in.readString();
		end_location_lat = in.readString();
		end_location_lng = in.readString();
		html_instructions = in.readString();
		start_location_lat = in.readString();
		start_location_lng = in.readString();
		travel_mode = in.readString();
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(distance);
		dest.writeString(duration);
		dest.writeString(end_location_lat);
		dest.writeString(end_location_lng);
		dest.writeString(html_instructions);
		dest.writeString(start_location_lat);
		dest.writeString(start_location_lng);
		dest.writeString(travel_mode);
	}
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	



	

	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getEnd_location_lat() {
		return end_location_lat;
	}

	public void setEnd_location_lat(String end_location_lat) {
		this.end_location_lat = end_location_lat;
	}

	public String getEnd_location_lng() {
		return end_location_lng;
	}

	public void setEnd_location_lng(String end_location_lng) {
		this.end_location_lng = end_location_lng;
	}

	public String getHtml_instructions() {
		return html_instructions;
	}

	public void setHtml_instructions(String html_instructions) {
		this.html_instructions = html_instructions;
	}

	public String getStart_location_lat() {
		return start_location_lat;
	}

	public void setStart_location_lat(String start_location_lat) {
		this.start_location_lat = start_location_lat;
	}

	public String getStart_location_lng() {
		return start_location_lng;
	}

	public void setStart_location_lng(String start_location_lng) {
		this.start_location_lng = start_location_lng;
	}

	public String getTravel_mode() {
		return travel_mode;
	}

	public void setTravel_mode(String travel_mode) {
		this.travel_mode = travel_mode;
	}

}
